﻿using System.ComponentModel.DataAnnotations;

namespace QuickGet.EntityFrameworkCore.Models
{
    public class PackageEntity
    {
        public PackageEntity(string packageId, string normalizedPackageId)
        {
            PackageId = packageId;
            NormalizedPackageId = normalizedPackageId;
            Created = DateTimeOffset.UtcNow;
            LastModified = DateTimeOffset.UtcNow;
        }

        [Key]
        public long Id { get; set; }
        public string PackageId { get; set; }
        public string NormalizedPackageId { get; set; }
        public DateTimeOffset Created { get; set; }
        public DateTimeOffset LastModified { get; set; }
    }
}
